package com.ssh.action;

import com.opensymphony.xwork2.ActionSupport;
import com.ssh.bean.factory.BeanFactory;
import com.ssh.entity.Entity;

public class BaseAction extends ActionSupport {
	
	/**
	 *
	 */
	private static final long serialVersionUID = -1095251973376097402L;
	//protected HttpServletRequest request = ServletActionContext.getRequest();
	//protected HttpServletResponse response = ServletActionContext.getResponse();
	
	
	private BeanFactory beanFactory;
	protected Entity getBean(Class<? extends Entity> beanClass) {
		this.beanFactory = new BeanFactory();
		return this.beanFactory.getBean(Entity.class);
	}
}
